package com.tzbank.esb.util;

/**
 * 错误编码类
 */
public enum BusinessCodeUtil {
	
	//20000为AI的
	CODE_20001("语音解析错误","20001"),
	CODE_20002("找不到对应的动作","20002"),
	CODE_20003("语义格式化错误","20003"),
	CODE_20004("语义分析出错","20004"),
	
	//30000为teller的 
	CODE_30001("tele接口错误","30001"),

	//40000为ESB的
	CODE_40001("ESB返回报文解析出错","40001"),
	
	//其他异常
	CODE_00001("其他错误","00001");
	
    private String name;

    private String code;

    private BusinessCodeUtil(String name, String code){
        this.name = name;
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

}
